const Dexie = require('dexie');
const db = new Dexie('blockchain');

db.version(1).stores({
  cash: '++id, symbol1, symbol2, buyPrice, buyAmount, buyDate, nowPrice, nowDate, percent, usdt, saleDate, salePrice, remarks', // 现货
  contractUSD: '++id, symbol, type, security, openPrice, multiple, buyAmount, price, buyDate, nowPrice, nowDate, percent, usd, zero, saleDate, salePrice, remarks', // 币本位合约
  contractUSDT: '++id, symbol, type, security, openPrice, multiple, buyAmount, price, buyDate, nowPrice, nowDate, percent, usdt, zero, saleDate, salePrice, remarks', // U本位合约
});

module.exports = db;
